﻿using MaterialTypeRecognition.Shell.Uers;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;

namespace MaterialTypeRecognition.Shell.EntityFrameworkCore
{
    public class MyEntityConfiguration : IEntityTypeConfiguration<User>
    {
        public void Configure(EntityTypeBuilder<User> builder)
        {
            builder.HasData(new User()
            {
                Id = Guid.NewGuid(),
                Key = "123456",
                UserName = "Admin",
                Permission = UserPermissoins.Users.Admin
            });
        }
    }
}
